package com.zretc.entity;

import java.util.List;

/**
 * @author 周文涛
 * 订单实体类
 */
public class Orders {
    private String ordersId; // 订单编号
    private Account account; // 用户
    private Screening screening; // 场次
    private String ordersTime; // 下单时间
    private String payType; // 支付方式
    private Float payPrice; // 支付价格
    private Integer ordersStatus; // 订单状态 (0未支付 1 已支付 2 已完成 3 已退票 4 已超时)

    // 订单详情
    private List<OrdersDetail> ordersDetails;

    public Orders() {
    }

    public String getOrdersId() {
        return ordersId;
    }

    public void setOrdersId(String ordersId) {
        this.ordersId = ordersId;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    public Screening getScreening() {
        return screening;
    }

    public void setScreening(Screening screening) {
        this.screening = screening;
    }

    public String getOrdersTime() {
        return ordersTime;
    }

    public void setOrdersTime(String ordersTime) {
        this.ordersTime = ordersTime;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public Float getPayPrice() {
        return payPrice;
    }

    public void setPayPrice(Float payPrice) {
        this.payPrice = payPrice;
    }

    public Integer getOrdersStatus() {
        return ordersStatus;
    }

    public void setOrdersStatus(Integer ordersStatus) {
        this.ordersStatus = ordersStatus;
    }

    public List<OrdersDetail> getOrdersDetails() {
        return ordersDetails;
    }

    public void setOrdersDetails(List<OrdersDetail> ordersDetails) {
        this.ordersDetails = ordersDetails;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "ordersId='" + ordersId + '\'' +
                ", account=" + account +
                ", screening=" + screening +
                ", ordersTime='" + ordersTime + '\'' +
                ", payType='" + payType + '\'' +
                ", payPrice=" + payPrice +
                ", ordersStatus=" + ordersStatus +
                ", ordersDetails=" + ordersDetails +
                '}';
    }
}
